package com.ysd.modules.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ysd.modules.sys.entity.Topic;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ysd.modules.sys.model.TopicModel;
import com.ysd.modules.sys.model.TopicResp;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dapeng
 * @since 2021-07-15
 */
public interface TopicService extends IService<Topic> {

    IPage<TopicResp> listSearch(Map<String, Object> req);
    Topic detailSearch(Integer id);
    void delete(List<Integer> ids);

    void saveAll(List<TopicResp> objects, Long userId, String userName);
    
    int adds(TopicModel tm,Long userId, String userName);
}
